/**
 * 
 */
package dao;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;

/**
 * @author alex
 * 
 */
public abstract class DAO<T> {

//	public Connection connect = ConnectionPostgreSQL.getInstance();
	private final static EntityManagerFactory emf = Persistence.createEntityManagerFactory("PDW_JPA");
	private static EntityManager em = emf.createEntityManager();

	public static EntityManagerFactory getEmf() {
		return emf;
	}

	public static EntityManager getEm() {
		return em;
	}

}
